package com.ning.google;

import java.text.DecimalFormat;
import java.text.NumberFormat;

public class GeneralInfo {
	
	private int pv;
	private int uv;
	private int newuv;
	private int avgtime;
	private double percentNewUv;
	private String date;
	private double perPageUser;
	private double exitRate;
	private String type;
	
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getExitRate(){
		DecimalFormat df = new DecimalFormat("######0.00");  
		return df.format(exitRate);
	}
	public void setExitRate(double exitRate) {
		this.exitRate = exitRate; 
	}

	public String getPerPageUser(){
		DecimalFormat df = new DecimalFormat("######0.00");  
		return df.format(perPageUser);
	}
	public void setPerPageUser(double perPageUser) {
		this.perPageUser = perPageUser;
	}
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	public int getPv() {
		return pv;
	}
	public void setPv(int pv) {
		this.pv = pv;
	}
	public int getUv() {
		return uv;
	}
	public void setUv(int uv) {
		this.uv = uv;
	}
	public int getNewuv() {
		return newuv;
	}
	public void setNewuv(int newuv) {
		this.newuv = newuv;
	}
	public int getAvgtime() {
		return avgtime;
	}
	public void setAvgtime(int avgtime) {
		this.avgtime = avgtime;
	}
	public String getPercentNewUv() {
		NumberFormat format = new DecimalFormat("#0.00");
		return format.format(percentNewUv);
	}
	public void setPercentNewUv(double percentNewUv) {
		this.percentNewUv = percentNewUv;
	}
	@Override
	public String toString() {
		return "GeneralInfo [pv=" + pv + ", uv=" + uv + ", newuv=" + newuv
				+ ", avgtime=" + avgtime + ", percentNewUv=" + percentNewUv
				+ ", date=" + date + ", perPageUser=" + perPageUser
				+ ", exitRate=" + exitRate + "]";
	}
}